package com.lebang.service.sys;

import com.lebang.entity.MemberVideoCheck;
import com.lebang.mapper.MemberVideoCheckMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @Author: hwq
 * @Date: 2019/10/28 11:34
 * @Version 1.0
 */
@Service
public class MemberVideoService {
    @Autowired
    private MemberVideoCheckMapper memberVideoCheckMapper;

    public MemberVideoCheck selectById(Integer id) {
    return memberVideoCheckMapper.selectByPrimaryKey(id);
    }

    public int updateVo(MemberVideoCheck vo) {
        return memberVideoCheckMapper.updateByPrimaryKeySelective(vo);
    }

    public int insertVo(MemberVideoCheck vo) {
        vo.setCreatedTime(new Date());
        vo.setUpdatedTime(new Date());
        vo.setId(null);
        return memberVideoCheckMapper.insertSelective(vo);
    }
}
